package yun.http.rechochoku.response;

import org.json.JSONException;
import org.json.JSONObject;
import yun.common.http.response.JSONResponse;

public class Au01Response extends JSONResponse {
	static final String NAME = "name";

	private String mName;

	Au01Response() {
		super();
	}

	public String getName() {
		return mName;
	}

	@Override
	public JSONResponse parse(JSONObject json) throws JSONException {
		mName = json.getString(NAME);
		return this;
	}
	@Override
	public String toString() {
		StringBuilder toString = new StringBuilder();
		toString.append("+--<Au01Response>---").append('\n');
		toString.append("| ").append(NAME).append('=').append(mName).append('\n');
		toString.append("+--------------------").append('\n');
		return toString.toString();
	}
}
